
#ifndef _CONFIG_H_
#define _CONFIG_H_

#define uchar unsigned char
#define uint unsigned int
#define bit uchar
#define idata
#define code


/************* global defines ******************/
#define C_FW_VERSION_MAJOR 0
#define C_FW_VERSION_MINOR 2

#define _DEBUG_


//#define	XTAL		11059200L
#define XTAL		2000000UL

#define	BAUD	9600UL
#define C_USE_UART_X2

#define C_MAX_NUMBER_OF_SENSORS 2
#define C_MAX_CMD_LEN 16
#define C_SIZE_UART_BUFFER 96


#define LEDR_OUTPUT()
#define LEDG_OUTPUT()
#define LEDR_OFF() pcf8574SetPin(3,1)
#define LEDR_ON() pcf8574SetPin(3,0)
#define LEDG_OFF() pcf8574SetPin(2,1)
#define LEDG_ON() pcf8574SetPin(2,0)

#define BACKLIGHT_ON()  pcf8574SetPin(1,1)
#define BACKLIGHT_OFF() pcf8574SetPin(1,0)

#define CMD_GET_TEMP  0x10
#define CMD_SET_RELAY 0x11
#define CMD_GET_RELAY_STATUS 0x12

#define TRUE 1
#define FALSE !TRUE

#endif
